Fix CI HTML preview naming conflict with Netlify deploy-preview mechanism#608
Fix CI HTML preview naming conflict with Netlify deploy-preview mechanism#608
Conversation
✅ Deploy Preview for sunny-cactus-210e3e ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
|
@copilot has this updated all the links, such as those in the commit message that references the html (hosted by netlify)? Can we ensure all our links are updated please. |
I've searched the entire repository and confirmed that all references to the old ✅ Updated CI workflow context: The change is purely a naming update in the CI workflow - existing PR preview URLs will automatically use the new |
|
📖 Netlify Preview Ready! Preview URL: https://pr-608--sunny-cactus-210e3e.netlify.app (9fe0dad) |
The CI workflow was using Netlify deployment names that conflict with Netlify's built-in deploy-preview mechanism, causing HTML previews to not show the latest build correctly.
Problem
Netlify was showing this warning during deployments:
The CI workflow in
.github/workflows/ci.ymlwas using:This naming pattern conflicts with Netlify's internal deploy-preview system, preventing the latest HTML builds from being properly displayed on PR preview links.
Solution
Changed the naming structure to avoid the conflict:
--context deploy-preview→--context pr-preview--alias deploy-preview-${{ github.event.pull_request.number }}→--alias pr-${{ github.event.pull_request.number }}Impact
pr-123instead ofdeploy-preview-123devcontext) are unaffectedFixes #607.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.